<?php

include_once '../Interfaces/XMLInterface.php';
include_once '../InfoManager/InfoParking.php';
include_once '../Exceptions/CommunicationException.php';
include_once '../Model/GPS.php';
include_once '../AtacCommunicator/ACtraveltime.php';
include_once '../Exceptions/WrongParametersException.php';

/**
 * La classe route rappresenta la tratta
 * @author Giuseppe Marzo
 *
 */
class Route {
	
/*	
	<APOINT></APOINT>
<BPOINT></BPOINT>
<AID></AID>
<BID></BID>
<ALAT></ALAT>
<ALON></ALON>
<BLAT></BLAT>
<BLON></BLON>
<TIME></TIME>

*/	
	public $itinerario;
	public $lat;
	public $long;
	public $id;
	public $gps;
	
	function __construct($id, $itinerario, $lat, $long)		
	{
		if(($lat!=null) && ($long!=null))
		{
			$lat = floatval($lat);
			$long = floatval($long);
			$this->gps = new GPS($lat,$long);
		}
		
		$this->id=$id;
		$this->lat=$lat;
		$this->long=$long;
		$this->itinerario=$itinerario;
		
		
		
	}
}
?>